package com.lianyu507.service.impl;

/**
 * =================================
 * <p>
 * Created by Administrator on 2017/11/22.
 * <p>
 * 描述:
 */


import com.lianyu507.pojo.CrArticle;
import com.lianyu507.service.ArticleContentShowService;
import com.lianyu507.service.CrArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

//调用common里面的方法
@Service
public class ArticleContentShowServiceImpl implements ArticleContentShowService {

@Autowired
    private CrArticleService crArticleService;

    public CrArticle getArticleContent(Integer id){
        if(id == null){
            return null;
        }
    return crArticleService.selectByPrimaryKey(id);
}



}